<?php

define("DOCROOT",			$_SERVER["DOCUMENT_ROOT"]);
define("SELF",				$_SERVER["PHP_SELF"]);
define("REQUEST",			$_SERVER["REQUEST_URI"]);

define("DIR_DELIMITER",		"\\");
define("DIR_LIBRARY",		dirname(__FILE__));
define("DIR_ROOT",			substr(DIR_LIBRARY, 0, strrpos(DIR_LIBRARY, DIR_DELIMITER)));
define("DIR_CONFIG",		DIR_ROOT . DIR_DELIMITER . "config");
define("DIR_APP",			DIR_ROOT . DIR_DELIMITER . "app");
define("DIR_CONTROLLERS",	DIR_APP . DIR_DELIMITER . "controllers");
define("DIR_MODELS",		DIR_APP . DIR_DELIMITER . "models");
define("DIR_VIEWS",			DIR_APP . DIR_DELIMITER . "views");

// load configuration from config.ini file
$CONFIG = parse_ini_file(DIR_CONFIG . DIR_DELIMITER . "configuration.ini", true);

// set ERROR codes
$ERROR = array(
	1001 => array(
		"Action Not Found",
		"Requested Action could not be executed."
	),
	1002 => array(
		"View Not Found",
		"Requested View &quot;%s&quot; could not be found."
	)
)

?>